package com.poisonh.unifiedauth.ui;

import android.content.Intent;
import android.os.Bundle;
import android.view.View;

import com.poisonh.unifiedauth.R;
import com.zhy.autolayout.AutoRelativeLayout;

/**
 * 安全设置
 * Created by PoisonH on 2016/6/28.
 */
public class SettingSecurityActivity extends BaseActivity implements View.OnClickListener
{
    private AutoRelativeLayout mArlSettingSecurityA;
    private AutoRelativeLayout mArlSettingSecurityB;
    private AutoRelativeLayout mArlSettingSecurityC;

    @Override
    protected void loadContentView(Bundle savedInstanceState)
    {
        setContentView(R.layout.activity_settingsecurity);
        initTitleView();
        initView();
    }

    @Override
    protected void initView()
    {
        mRightBtn.setVisibility(View.GONE);
        setTitleTxt("安全设置");
        mArlSettingSecurityA = (AutoRelativeLayout) findViewById(R.id.arl_setting_security_a);
        mArlSettingSecurityB = (AutoRelativeLayout) findViewById(R.id.arl_setting_security_b);
        mArlSettingSecurityC = (AutoRelativeLayout) findViewById(R.id.arl_setting_security_c);
        mArlSettingSecurityA.setOnClickListener(this);
        mArlSettingSecurityB.setOnClickListener(this);
        mArlSettingSecurityC.setOnClickListener(this);
        mLeftBtn.setOnClickListener(this);

    }

    @Override
    public void onClick(View v)
    {
        switch (v.getId())
        {
            case R.id.arl_setting_security_a:
                startActivity(new Intent(SettingSecurityActivity.this, SettingCommondActivity.class));
                break;
            case R.id.arl_setting_security_b:
                startActivity(new Intent(SettingSecurityActivity.this, ShowOldPhoneActivity.class));
                break;
            case R.id.arl_setting_security_c:
                startActivity(new Intent(SettingSecurityActivity.this, DeviceManageActivity.class));
                break;
            case R.id.ib_left_btn:
                finish();
                break;
        }
    }
}
